package com.headingdata.string;

public class StringDemo1 {

    public static void main(String[] args) {

        String name =  "张三";
        System.out.println(name);

        String res1 = new String();
        System.out.println(res1);

        String res2 = new String("你好，张三！");
        System.out.println(res2);

        char[] chars = {'c','中','h','t'};
        String res3 = new String(chars);
        System.out.println(res3);

        byte[] bytes = {97,98,99,100};
        String res4 = new String(bytes);
        System.out.println(res4);

    }
}
